package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-04-14
 * Time: 13:49
 */
public class BookList {
    private  int booksize;
    private  Book [] books = new Book[10];

    public BookList() {
        books[0] = new Book("三国演义","罗贯中","小说",15);
        books[1] = new Book("西游记","吴承恩","小说",66);
        books[2] = new Book("红楼梦","曹雪芹","小说",89);
        booksize = 3;
    }

    public int getBooksize() {
        return booksize;
    }

    public void setBooksize(int booksize) {
        this.booksize = booksize;
    }

    public Book getBooks(int i) {
        return books[i];
    }

    public void setBooks(int i, Book book) {
        this.books[i] = book;
    }
}
